package com.kangkang.reflection.objectEx;

/**
 * 描述:
 * 日期: 2022-03-18 <br>
 *
 * @author: 旺旺老师<br>
 * @version: 1.0<br>
 */
public class Tool {
    //可变参数个数
    public void show(String... strs) {
        System.out.println("方法被调用了");
        for (String str : strs) {
            System.out.println(str);
        }
    }

    public static void main(String[] args) {
        Tool t = new Tool();
        t.show();
        t.show("a");
        t.show("a", "b", "c", "d");
    }

}
